﻿<%@ Control Language="C#" %>
<%@ Register Src="../module/Menu-Home-Child.ascx" TagName="ChildMenu" TagPrefix="inal" %>

<script runat="server">

    private int Item_typ = 1;
    private int cid = 0;
    private int lang = 1;
    protected void Page_Load(object sender, EventArgs e)
    {
        if (Item_Typ == 1)
            Item_Typ = Utils.GetQueryString("MenuTyp", 1);
        Item_Lang = Utils.GetQueryString("lang", 1);
        Menubar menus = new Menubar();
        Repeater_List.DataSource = menus.List(Item_Typ, Item_Lang, Cid);
        Repeater_List.DataBind();
    }

    public int Item_Lang
    {
        get { return lang; }
        set { lang = value; }
    }
    public int Item_Typ
    {
        get { return Item_typ; }
        set { Item_typ = value; }
    }
    public int Cid
    {
        get { return cid; }
        set { cid = value; }
    }

</script>
<ul id="nav" class="nav clearfix">
    <asp:Repeater runat="server" ID="Repeater_List">
        <ItemTemplate>
            <li class="nLi">
                    <a href="<%#Eval("Item_Url") %>" class="a<%#Eval("Item_Position")%>"><%#Eval("Item_Name")%></a>
                <!-- 二级菜单 
                <inal:ChildMenu Root_ID='<%#Utils.ToInt(Container.DataItem,"Item_Id") %>' runat="server" />
                    -->
            </li>
        </ItemTemplate>
    </asp:Repeater>
</ul>









